int br = 8;
int bj = 9;

void setup(){
  pinMode(br, INPUT);
  pinMode(bj, INPUT);
  pinMode(10, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  digitalWrite(12, HIGH);
  digitalWrite(13, HIGH);
}

void loop(){
  digitalWrite(12, HIGH);
  if(digitalRead(br) == LOW){
    Serial.print('1'); 
  }
  if(digitalRead(bj) == LOW){
    Serial.print('2'); 
  }

}




